home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / AIAT / Headers / Analysis / EnglishAnalysis.h < prev    next >
Encoding:
Text File  |  1998-04-16  |  986 b   |  49 lines  |  [TEXT/CWIE]

  1. //
  2. //    File:        EnglishAnalysis.h
  3. //    Copyright:    © 1994 - 1998 by Apple Computer, Inc., all rights reserved.
  4. //
  5.  
  6. #pragma once
  7. #ifndef ENGLISHANALYSIS_h
  8. #define ENGLISHANALYSIS_h
  9.  
  10. #pragma import on
  11.  
  12. #if PRAGMA_STRUCT_ALIGN
  13.     #pragma options align=power
  14. #endif
  15.  
  16. #include "IAAnalysis.h"
  17.  
  18. #pragma IA_BEGIN_EXPORTS
  19.  
  20. class LetterTree;
  21. class StemmingDictionary;
  22.  
  23. const uint32        EnglishAnalysisType = 'Eng1';
  24.  
  25. class EnglishAnalysis : public IAAnalysis {
  26. public:
  27.                     EnglishAnalysis(IADocText* stopwordDoc, IADocText* stemDictDoc);
  28.                     EnglishAnalysis(char* stopwordFilePath, char* stemDictFilePath);
  29.                     EnglishAnalysis() : IAAnalysis(EnglishAnalysisType),
  30.                                         stopwordDB(NULL), stemDict(NULL) {}
  31.     virtual            ~EnglishAnalysis();
  32.  
  33.     IATokenStream*    MakeTokenStream(IADocText* text);
  34.     IATerm*            GetProtoTerm();
  35. private:
  36.     LetterTree*            stopwordDB;
  37.     StemmingDictionary*    stemDict;
  38. };
  39.  
  40. #pragma IA_END_EXPORTS
  41.  
  42. #if PRAGMA_STRUCT_ALIGN
  43.     #pragma options align=reset
  44. #endif
  45.  
  46. #pragma import reset
  47.  
  48. #endif
  49.